import 'package:flutter_ncsjqz_getx/generated/json/base/json_convert_content.dart';
import 'package:flutter_ncsjqz_getx/model/my_follow_entity.dart';

MyFollowEntity $MyFollowEntityFromJson(Map<String, dynamic> json) {
	final MyFollowEntity myFollowEntity = MyFollowEntity();
	final String? msg = jsonConvert.convert<String>(json['msg']);
	if (msg != null) {
		myFollowEntity.msg = msg;
	}
	final int? code = jsonConvert.convert<int>(json['code']);
	if (code != null) {
		myFollowEntity.code = code;
	}
	final MyFollowData? data = jsonConvert.convert<MyFollowData>(json['data']);
	if (data != null) {
		myFollowEntity.data = data;
	}
	return myFollowEntity;
}

Map<String, dynamic> $MyFollowEntityToJson(MyFollowEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['msg'] = entity.msg;
	data['code'] = entity.code;
	data['data'] = entity.data?.toJson();
	return data;
}

MyFollowData $MyFollowDataFromJson(Map<String, dynamic> json) {
	final MyFollowData myFollowData = MyFollowData();
	final int? totalCount = jsonConvert.convert<int>(json['totalCount']);
	if (totalCount != null) {
		myFollowData.totalCount = totalCount;
	}
	final int? pageSize = jsonConvert.convert<int>(json['pageSize']);
	if (pageSize != null) {
		myFollowData.pageSize = pageSize;
	}
	final int? totalPage = jsonConvert.convert<int>(json['totalPage']);
	if (totalPage != null) {
		myFollowData.totalPage = totalPage;
	}
	final int? currPage = jsonConvert.convert<int>(json['currPage']);
	if (currPage != null) {
		myFollowData.currPage = currPage;
	}
	final List<MyFollowDataList>? xList = jsonConvert.convertListNotNull<MyFollowDataList>(json['list']);
	if (xList != null) {
		myFollowData.xList = xList;
	}
	return myFollowData;
}

Map<String, dynamic> $MyFollowDataToJson(MyFollowData entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['totalCount'] = entity.totalCount;
	data['pageSize'] = entity.pageSize;
	data['totalPage'] = entity.totalPage;
	data['currPage'] = entity.currPage;
	data['list'] =  entity.xList?.map((v) => v.toJson()).toList();
	return data;
}

MyFollowDataList $MyFollowDataListFromJson(Map<String, dynamic> json) {
	final MyFollowDataList myFollowDataList = MyFollowDataList();
	final int? followUserId = jsonConvert.convert<int>(json['followUserId']);
	if (followUserId != null) {
		myFollowDataList.followUserId = followUserId;
	}
	final dynamic? beFollowUserId = jsonConvert.convert<dynamic>(json['beFollowUserId']);
	if (beFollowUserId != null) {
		myFollowDataList.beFollowUserId = beFollowUserId;
	}
	final dynamic? nickName = jsonConvert.convert<dynamic>(json['nickName']);
	if (nickName != null) {
		myFollowDataList.nickName = nickName;
	}
	final dynamic? followId = jsonConvert.convert<dynamic>(json['followId']);
	if (followId != null) {
		myFollowDataList.followId = followId;
	}
	final dynamic? userPic = jsonConvert.convert<dynamic>(json['userPic']);
	if (userPic != null) {
		myFollowDataList.userPic = userPic;
	}
	final bool? isAttention = jsonConvert.convert<bool>(json['isAttention']);
	if (isAttention != null) {
		myFollowDataList.isAttention = isAttention;
	}
	final int? sex = jsonConvert.convert<int>(json['sex']);
	if (sex != null) {
		myFollowDataList.sex = sex;
	}
	return myFollowDataList;
}

Map<String, dynamic> $MyFollowDataListToJson(MyFollowDataList entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['followUserId'] = entity.followUserId;
	data['beFollowUserId'] = entity.beFollowUserId;
	data['nickName'] = entity.nickName;
	data['followId'] = entity.followId;
	data['userPic'] = entity.userPic;
	data['isAttention'] = entity.isAttention;
	data['sex'] = entity.sex;
	return data;
}